// 1.引入Vue
import Vue from 'vue'

// 2.引入vue-router
import VueRouter from 'vue-router'

// 引入组件
import Find from '../view/find'
import My from '../view/my'
import Part from '../view/part'


// 3.vue使用use
Vue.use(VueRouter)

// 4.创建vue-router实例
const router = new VueRouter({
  routes: [
    {
      path: '/find',
      component:Find,
    },
    {
      path: '/my',
      component:My,
    },
    {
      path: '/part',
      component:Part,
    },
  ]
})




// 5. 导出
export default router